﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Xource.Helper
{
    public class LanguageInfo : CultureInfo
    {
        public bool Default { private set; get; }

        public int Column { private set; get; }

        public LanguageInfo(int culture, int column, bool isDefault = false)
            : base(culture)
        {
            Initializer(column, isDefault);
        }

        public LanguageInfo(string name, int column, bool isDefault = false)
            : base(name)
        {
            Initializer(column, isDefault);
        }

        public LanguageInfo(int culture, int column, bool useUserOverride, bool isDefault = false)
            : base(culture, useUserOverride)
        {
            Initializer(column, isDefault);
        }

        public LanguageInfo(string name, int column, bool useUserOverride, bool isDefault = false)
            : base(name, useUserOverride)
        {
            Initializer(column, isDefault);
        }

        void Initializer(int column, bool isDefault)
        {
            Column = column;
            Default = isDefault;
        }
    }
}
